const contractColumns = {
  all: [
    {
      title: '合同来源',
      dataIndex: 'contract_type',
      width: '100px',
      scopedSlots: { customRender: 'contract_type' }
      // filters: [
      //   { text: '转移合同', value: '1' },
      //   { text: '我的合同', value: '0' }
      // ],
      // filterMultiple: false
    },
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      width: '170px',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '业务名称',
      dataIndex: 'tm_name',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '申请主体',
      dataIndex: 'subject',
      ellipsis: true,
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    // {
    //   title: '联系电话',
    //   dataIndex: 'phone1',
    //   scopedSlots: { filterDropdown: 'filterDropdown' }
    // },
    {
      title: '金额明细',
      dataIndex: 'amount',
      width: '150px',
      scopedSlots: { customRender: 'amount' }
    },
    // {
    //   title: '代理费',
    //   dataIndex: 'agency_fee',
    //   sorter: true,
    //   width: '100px',
    //   scopedSlots: { customRender: 'agency_fee' }
    // },
    // {
    //   title: '尾款',
    //   dataIndex: 'tail_money',
    //   sorter: true,
    //   width: '100px',
    //   scopedSlots: { customRender: 'tail_money' }
    // },
    {
      title: '合同状态',
      dataIndex: 'status',
      width: '130px',
      scopedSlots: { customRender: 'status' }
      // filters: [
      //   {
      //     text: '待提交',
      //     value: '10'
      //   },
      //   {
      //     text: '待审核',
      //     value: '20'
      //   },
      //   {
      //     text: '组审中',
      //     value: '30'
      //   },
      //   {
      //     text: '组审不过',
      //     value: '32'
      //   },
      //   {
      //     text: '组审通过',
      //     value: '34'
      //   },
      //   {
      //     text: '财审中',
      //     value: '40'
      //   },
      //   {
      //     text: '财审不过',
      //     value: '42'
      //   },
      //   {
      //     text: '财审通过',
      //     value: '44'
      //   }
      // ],
      // onFilter: (value, record) => record.check_status.indexOf(value) === 0
    },
    {
      title: '审核信息',
      dataIndex: 'check_notes'
    },
    {
      title: '创建时间',
      dataIndex: 'created_at',
      sorter: true
    },
    {
      title: '提交时间',
      dataIndex: 'submit_check_time',
      sorter: true
    },
    {
      title: '开票信息',
      dataIndex: 'i_status',
      scopedSlots: { customRender: 'i_status' }
    },
    {
      title: '操作',
      dataIndex: 'action',
      width: '260px',
      scopedSlots: { customRender: 'action' }
    }
  ],
  refund2: [
    {
      title: '退款ID',
      dataIndex: 'refund_id'
    },
    {
      title: '退款金额',
      dataIndex: 'amount',
      scopedSlots: { customRender: 'amount' }
    },
    {
      title: '退款理由',
      dataIndex: 'reason'
    },
    {
      title: '申请单',
      dataIndex: 'apply_file_url_map',
      scopedSlots: { customRender: 'apply_file_url_map' }
    },
    {
      title: '沟通截图',
      dataIndex: 'communicate_img',
      scopedSlots: { customRender: 'communicate_img' }
    },
    {
      title: '备注信息',
      dataIndex: 'remarks'
    },
    {
      title: '审核信息',
      dataIndex: 'check_notes'
    },
    {
      title: '状态',
      dataIndex: 'status',
      scopedSlots: { customRender: 'status' }
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  refund: [
    {
      title: '退款金额',
      dataIndex: 'amount',
      sorter: true
    },
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      scopedSlots: {
        filterDropdown: 'filterDropdown'
      }
    },
    {
      title: '退款理由',
      dataIndex: 'reason'
    },
    {
      title: '申请单',
      dataIndex: 'apply_file_url_map',
      scopedSlots: { customRender: 'apply_file_url_map' }
    },
    {
      title: '沟通截图',
      dataIndex: 'communicate_img',
      scopedSlots: { customRender: 'communicate_img' }
    },
    {
      title: '退款截图',
      dataIndex: 'refund_img'
    },
    {
      title: '退款时间',
      dataIndex: 'refund_time',
      sorter: true
    },
    {
      title: '提交时间',
      dataIndex: 'submit_check_time',
      sorter: true
    },
    {
      title: '创建时间',
      dataIndex: 'created_at',
      sorter: true
    },
    {
      title: '状态',
      dataIndex: 'status',
      scopedSlots: { customRender: 'status' }
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  business: [
    {
      title: '序号',
      dataIndex: 'contract_index',
      width: '80px',
      scopedSlots: { customRender: 'contract_index' }
    },
    {
      title: '业务大类',
      dataIndex: 'category'
    },
    {
      title: '业务小类',
      dataIndex: 'business_name'
    },
    // {
    //   title: '业务单价',
    //   dataIndex: 'price',
    //   scopedSlots: { customRender: 'price' }
    // },
    {
      title: '数量',
      dataIndex: 'num',
      scopedSlots: { customRender: 'num' }
    },
    {
      title: '基础官费',
      dataIndex: 'official_fee',
      scopedSlots: { customRender: 'official_fee' }
    },
    {
      title: '附加项官费',
      dataIndex: 'additional_items',
      scopedSlots: { customRender: 'additional_items' }
    },
    {
      title: '总官费',
      dataIndex: 'total_official_fee',
      scopedSlots: { customRender: 'sum_offical' }
    },
    // {
    //   title: '代理费',
    //   dataIndex: 'agency_fee'
    // },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  selected: [
    {
      title: '序号',
      dataIndex: 'contract_index',
      width: '80px',
      scopedSlots: { customRender: 'contract_index' }
    },
    {
      title: '业务代码',
      dataIndex: 'business_no'
    },
    {
      title: '类别',
      dataIndex: 'category'
    },
    {
      title: '业务名称',
      dataIndex: 'name'
    },
    {
      title: '业务价格',
      dataIndex: 'price',
      scopedSlots: { customRender: 'price' }
    },
    {
      title: '基础官费',
      dataIndex: 'official_fee'
    },
    // {
    //   title: '附加项目',
    //   dataIndex: 'additional_items',
    //   scopedSlots: { customRender: 'additional_items' }
    // },
    {
      title: '附加项/官费',
      dataIndex: 'additional_content',
      scopedSlots: { customRender: 'additional_content' }
    },
    {
      title: '总官费',
      dataIndex: 'total_official_fee',
      scopedSlots: { customRender: 'total_official_fee' }
    },
    {
      title: '代理费',
      dataIndex: 'agency_fee'
    },
    {
      title: '业务状态',
      dataIndex: 'status1',
      scopedSlots: { customRender: 'status' }
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  selected2: [
    {
      title: '序号',
      dataIndex: 'contract_index',
      width: '80px',
      scopedSlots: { customRender: 'contract_index' }
    },
    {
      title: '类型',
      dataIndex: 'type',
      scopedSlots: { customRender: 'type' }
    },
    {
      title: '业务代码',
      dataIndex: 'business_no'
    },
    {
      title: '类别',
      dataIndex: 'category'
    },
    {
      title: '业务名称',
      dataIndex: 'name'
    },
    {
      title: '基础官费',
      dataIndex: 'official_fee'
    },
    {
      title: '附加项目',
      dataIndex: 'ext',
      scopedSlots: { customRender: 'ext' }
    },
    {
      title: '附加内容',
      dataIndex: 'price',
      scopedSlots: { customRender: 'price' }
    },
    {
      title: '是否为担保',
      dataIndex: 'db',
      scopedSlots: { customRender: 'db' }
    },
    {
      title: '报价',
      dataIndex: 'bj'
    },
    {
      title: '代理费',
      dataIndex: 'dlf'
    },
    {
      title: '必填备注',
      dataIndex: 'remark',
      scopedSlots: { customRender: 'remark' }
    },
    {
      title: '其他',
      dataIndex: 'other',
      scopedSlots: { customRender: 'other' }
    }
  ],
  finance: [
    // {
    //   title: '序号',
    //   dataIndex: 'sort',
    //   scopedSlots: { customRender: 'sort' }
    // },
    // {
    //   title: '类型',
    //   dataIndex: 'type'
    // },
    {
      title: '金额',
      dataIndex: 'amount',
      width: '140px',
      scopedSlots: { customRender: 'amount' }
    },
    // {
    //   title: '已打款',
    //   dataIndex: 'paid',
    //   width: '140px',
    //   scopedSlots: { customRender: 'paid' }
    // },
    // {
    //   title: '尾款',
    //   dataIndex: 'final_payment',
    //   width: '140px',
    //   scopedSlots: { customRender: 'final_payment' }
    // },
    {
      title: '打款日期',
      dataIndex: 'payment_time',
      width: '140px'
    },
    {
      title: '打款方式',
      dataIndex: 'receive_account_type',
      width: '500px',
      scopedSlots: { customRender: 'receive_account_type' }
    },
    {
      title: '打款账号',
      dataIndex: 'payment_account',
      key: 'payment_account'
    },
    {
      title: '截图',
      dataIndex: 'img',
      width: '100px',
      scopedSlots: { customRender: 'img' }
    },
    // {
    //   title: '备注信息',
    //   dataIndex: 'remarks',
    //   ellipsis: true
    // },
    {
      title: '操作',
      dataIndex: 'action',
      width: '150px',
      scopedSlots: { customRender: 'action' }
    }
  ],
  finance2: [
    {
      title: '金额',
      dataIndex: 'amount',
      scopedSlots: { customRender: 'amount' }
    },
    {
      title: '打款日期',
      dataIndex: 'payment_time'
    },
    {
      title: '打款账号',
      dataIndex: 'payment_account'
    },
    {
      title: '截图',
      dataIndex: 'img',
      scopedSlots: { customRender: 'img' }
    }
    // {
    //   title: '备注信息',
    //   dataIndex: 'remarks',
    //   ellipsis: true
    // },
    // {
    //   title: '操作',
    //   dataIndex: 'action',
    //   width: '150px',
    //   scopedSlots: { customRender: 'action' }
    // }
  ],
  fzc: [
    {
      title: '编号',
      dataIndex: 'sort'
    },
    {
      title: '日期',
      dataIndex: 'time'
    },
    {
      title: '类型',
      dataIndex: 'type'
    },
    {
      title: '原业务编号',
      dataIndex: 'old_no'
    },
    {
      title: '现业务编号',
      dataIndex: 'new_no'
    },
    {
      title: '状态',
      dataIndex: 'status',
      scopedSlots: { customRender: 'status' }
    }
  ],
  address: [
    {
      title: '客户姓名',
      dataIndex: 'name'
    },
    {
      title: '联系电话',
      dataIndex: 'phone'
    },
    {
      title: '联系地址',
      dataIndex: 'address'
    },
    {
      title: '物流名称',
      dataIndex: 'logistics_name'
    },
    {
      title: '物流单号',
      dataIndex: 'logistics_no'
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  check: [
    {
      title: '审核人',
      dataIndex: 'username',
      width: '150px'
    },
    {
      title: '审核时间',
      dataIndex: 'check_time_str',
      width: '200px'
    },
    {
      title: '审核结果',
      dataIndex: 'check_result',
      width: '200px',
      scopedSlots: {
        customRender: 'check_result'
      }
    },
    {
      title: '备注',
      dataIndex: 'notes'
    }
  ],
  change: [
    {
      title: '原顾问',
      dataIndex: 'af_username'
    },
    {
      title: '新顾问',
      dataIndex: 'at_username'
    },
    {
      title: '转移人',
      dataIndex: 'op_username'
    },
    {
      title: '转移时间',
      dataIndex: 'created_at'
    }
  ],
  invoice: [
    {
      title: '申请时间',
      dataIndex: 'created_at',
      sorter: true
    },
    {
      title: '发票类型',
      dataIndex: 'invoice_type',
      scopedSlots: { customRender: 'invoice_type' }
    },
    {
      title: '抬头类型',
      dataIndex: 'header_type',
      scopedSlots: { customRender: 'header_type' }
    },
    {
      title: '发票抬头',
      dataIndex: 'header'
    },
    {
      title: '发票总额',
      dataIndex: 'amount',
      scopedSlots: { customRender: 'amount' },
      sorter: true
    },
    {
      title: '发票税费',
      dataIndex: 'invoice_fee',
      scopedSlots: { customRender: 'invoice_fee' }
    },
    {
      title: '发票状态',
      dataIndex: 'status',
      scopedSlots: { customRender: 'status' }
    },
    {
      title: '开票公司',
      dataIndex: 'company_name',
      scopedSlots: { customRender: 'company_name' }
    },
    {
      title: '申请备注',
      dataIndex: 'notes'
    },
    {
      title: '审核信息',
      dataIndex: 'remarks'
    },
    {
      title: '物流信息',
      dataIndex: 'express',
      scopedSlots: { customRender: 'express' }
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  recycle: [
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      width: '170px',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '业务名称',
      dataIndex: 'tm_name',
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '申请主体',
      dataIndex: 'subject',
      ellipsis: true,
      scopedSlots: { filterDropdown: 'filterDropdown' }
    },
    {
      title: '金额明细',
      dataIndex: 'amount',
      width: '150px',
      scopedSlots: { customRender: 'amount' }
    },
    {
      title: '创建时间',
      dataIndex: 'created_at',
      sorter: true
    },
    {
      title: '提交时间',
      dataIndex: 'submit_check_time',
      sorter: true
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  zengxiang: [
    {
      title: '序号',
      customRender: (text, record, index) => `${index + 1}`
    },
    {
      title: '业务名称',
      dataIndex: 'business_name',
      scopedSlots: { customRender: 'business_name' }
    },
    {
      title: '担保',
      dataIndex: 'db',
      scopedSlots: { customRender: 'db' }
    },
    {
      title: '费减',
      dataIndex: 'fj',
      scopedSlots: { customRender: 'fj' }
    },
    {
      title: '双报',
      dataIndex: 'sb',
      slots: { title: 'sb_title' },
      scopedSlots: { customRender: 'sb' }
    },
    {
      title: '加急',
      dataIndex: 'jj',
      scopedSlots: { customRender: 'jj' }
    },
    {
      title: '代缴',
      dataIndex: 'dj',
      scopedSlots: { customRender: 'dj' }
    },
    {
      title: '年费',
      dataIndex: 'nf',
      scopedSlots: { customRender: 'nf' }
    },
    {
      title: '合计',
      dataIndex: 'gj'
    }
  ],
  water: [
    {
      title: '编号',
      dataIndex: 'sort'
    },
    {
      title: '变更类型',
      dataIndex: 'type'
    },
    {
      title: '变更时间',
      dataIndex: 'time'
    },
    {
      title: '官费',
      dataIndex: 'offical_fee'
    },
    {
      title: '代理费',
      dataIndex: 'fee'
    },
    {
      title: '代理费盈余',
      dataIndex: 'over'
    }
  ],
  huodong: [
    {
      title: '活动类型',
      dataIndex: 'type'
    },
    {
      title: '活动时间',
      dataIndex: 'time'
    },
    {
      title: '活动业务',
      dataIndex: 'business_name'
    },
    {
      title: '总名额',
      dataIndex: 'total_num'
    },
    {
      title: '剩余名额',
      dataIndex: 'leftover_num',
      scopedSlots: { customRender: 'num' }
    },
    {
      title: '奖金',
      dataIndex: 'fee'
    },
    {
      title: '官费',
      dataIndex: 'offical_fee'
    },
    {
      title: '规则备注',
      dataIndex: 'note',
      scopedSlots: { customRender: 'note' },
      width: '240px'
    },
    {
      title: '代码',
      dataIndex: 'code',
      scopedSlots: { customRender: 'code' }
    }
  ],
  jiangli: [
    {
      title: '活动类型',
      dataIndex: 'type'
    },
    {
      title: '活动时间',
      dataIndex: 'time'
    },
    {
      title: '奖励金额',
      dataIndex: 'fee'
    },
    {
      title: '总名额',
      dataIndex: 'total_num'
    },
    {
      title: '剩余名额',
      dataIndex: 'leftover_num',
      scopedSlots: { customRender: 'num' }
    },
    {
      title: '规则备注',
      dataIndex: 'note',
      scopedSlots: { customRender: 'note' },
      width: '240px'
    },
    {
      title: '代码',
      dataIndex: 'code',
      scopedSlots: { customRender: 'code' }
    }
  ],
  business2: [
    {
      title: '业务名',
      dataIndex: 'business_name'
    },
    {
      title: '官费',
      dataIndex: 'price'
    },
    {
      title: '附加项',
      dataIndex: 'ext'
    },
    {
      title: '担保',
      dataIndex: 'db'
    }
  ],
  business4: [
    {
      title: '业务编号',
      dataIndex: 'business_no'
    },
    {
      title: '业务名称',
      dataIndex: 'business_name'
    },
    {
      title: '当前进展',
      dataIndex: 'status'
    },
    {
      title: '官费',
      dataIndex: 'price'
    },
    {
      title: '代理费',
      dataIndex: 'price1'
    },
    {
      title: '退款',
      dataIndex: 'price0',
      scopedSlots: { customRender: 'price0' }
    }
  ],
  ext_columns: [
    {
      title: '序号',
      dataIndex: 'xu',
      scopedSlots: { customRender: 'xu' }
    },
    {
      title: '所属业务ID',
      dataIndex: 'cb_id',
      scopedSlots: { customRender: 'cb_id' }
    },
    {
      title: '附加项',
      dataIndex: 'name'
    },
    {
      title: '附加项数量',
      dataIndex: 'count'
    },
    {
      title: '附加项单价',
      dataIndex: 'price'
    },
    {
      title: '附加项小计',
      dataIndex: 'amount'
    }
  ]
}

export default contractColumns
